﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 获取短信统计信息数据
    /// </summary>
    public class SmsStatisticsData
    {
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("list"), JsonPropertyName("list")]
        public IEnumerable<SmsStatisticsItemData> List { get; set; }
    }

    public class SmsStatisticsItemData
    {

        /// <summary>
        /// 日期
        /// </summary>
        [JsonProperty("send_date"), JsonPropertyName("send_date")]
        public DateTime SendDate { get; set; }

        /// <summary>
        /// 发送类型
        /// </summary>
        [JsonProperty("type"), JsonPropertyName("type")]
        public string Type { get; set; }

        /// <summary>
        /// 发送总量
        /// </summary>
        [JsonProperty("num_count"), JsonPropertyName("num_count")]
        public int NumCount { get; set; }

        /// <summary>
        /// 成功数量
        /// </summary>
        [JsonProperty("success_count"), JsonPropertyName("success_count")]
        public int SuccessCount { get; set; }

        /// <summary>
        /// 失败数量
        /// </summary>
        [JsonProperty("fail_count"), JsonPropertyName("fail_count")]
        public int FailCount { get; set; }
    }
}
